/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package stcu.forms;

/**
 *
 * @author Acer
 */
public class ServerForm extends javax.swing.JFrame {


    /**
     * Creates new form ServerForm
     */
    public ServerForm() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollPane1 = new javax.swing.JScrollPane();
        messageLog = new javax.swing.JTextArea();
        messageBox = new javax.swing.JTextField();
        sendButton = new javax.swing.JButton();
        jScrollPane2 = new javax.swing.JScrollPane();
        userListArea = new javax.swing.JList();
        muteButton = new javax.swing.JButton();
        viewMutedButton = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        stopButton = new javax.swing.JButton();
        backGround = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setMinimumSize(new java.awt.Dimension(720, 585));
        getContentPane().setLayout(null);

        messageLog.setBackground(new java.awt.Color(153, 153, 153));
        messageLog.setColumns(20);
        messageLog.setRows(5);
        jScrollPane1.setViewportView(messageLog);

        getContentPane().add(jScrollPane1);
        jScrollPane1.setBounds(10, 110, 370, 370);

        messageBox.setBackground(new java.awt.Color(153, 153, 153));
        getContentPane().add(messageBox);
        messageBox.setBounds(10, 490, 290, 40);

        sendButton.setBackground(javax.swing.UIManager.getDefaults().getColor("Button.darkShadow"));
        sendButton.setText("Send");
        getContentPane().add(sendButton);
        sendButton.setBounds(300, 490, 80, 40);

        userListArea.setBackground(new java.awt.Color(153, 153, 153));
        userListArea.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jScrollPane2.setViewportView(userListArea);

        getContentPane().add(jScrollPane2);
        jScrollPane2.setBounds(400, 140, 290, 320);

        muteButton.setText("Mute a User");
        getContentPane().add(muteButton);
        muteButton.setBounds(400, 490, 140, 40);

        viewMutedButton.setText("View Muted Users");
        getContentPane().add(viewMutedButton);
        viewMutedButton.setBounds(550, 490, 140, 40);

        jLabel1.setBackground(new java.awt.Color(255, 255, 255));
        jLabel1.setForeground(new java.awt.Color(204, 204, 204));
        jLabel1.setText("*Select User to be muted from the list of users");
        getContentPane().add(jLabel1);
        jLabel1.setBounds(390, 470, 290, 14);

        jLabel2.setBackground(new java.awt.Color(204, 204, 204));
        jLabel2.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel2.setForeground(new java.awt.Color(204, 204, 204));
        jLabel2.setText("List of Users");
        getContentPane().add(jLabel2);
        jLabel2.setBounds(390, 110, 120, 22);

        jLabel3.setFont(new java.awt.Font("Tahoma", 1, 36)); // NOI18N
        jLabel3.setForeground(new java.awt.Color(255, 255, 255));
        jLabel3.setText("S T C U - SERVER");
        getContentPane().add(jLabel3);
        jLabel3.setBounds(30, 20, 320, 60);

 		ClassLoader cl = this.getClass().getClassLoader();		
        stopButton.setIcon(new javax.swing.ImageIcon(cl.getResource("resources/images/off.jpg"))); // NOI18N
        getContentPane().add(stopButton);
        stopButton.setBounds(590, 20, 90, 80);

        backGround.setBackground(new java.awt.Color(204, 204, 204));
        backGround.setIcon(new javax.swing.ImageIcon(cl.getResource("resources/images/background.jpg"))); // NOI18N
        getContentPane().add(backGround);
        backGround.setBounds(4, 0, 700, 550);

        pack();
    }// </editor-fold>//GEN-END:initComponents


    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(ServerForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(ServerForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(ServerForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(ServerForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new ServerForm().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    protected javax.swing.JLabel backGround;
    protected javax.swing.JButton sendButton;
    protected javax.swing.JButton muteButton;
    protected javax.swing.JButton viewMutedButton;
    protected javax.swing.JButton stopButton;
    protected javax.swing.JLabel jLabel1;
    protected javax.swing.JLabel jLabel2;
    protected javax.swing.JLabel jLabel3;
    protected javax.swing.JList userListArea;
    protected javax.swing.JScrollPane jScrollPane1;
    protected javax.swing.JScrollPane jScrollPane2;
    protected javax.swing.JTextArea messageLog;
    protected javax.swing.JTextField messageBox;
    // End of variables declaration//GEN-END:variables
}
